<template>
	<view class="container">
		<!--头部start-->
		<view class="activation">
			<view class="credit" >
				<view class="credit_li">
					<view class="num">直推人数<view>13</view><text>(有效10)</text></view>
					<view class="num">团队人数<view>47</view><text>(有效39)</text></view>
				</view>
		        <view class="s_form">
					<u-search :showAction='showAction' :bgColor='bgColor' :inputAlign='inputAlign' placeholder="搜索团队成员..." v-model="keyword" height="65rpx" searchIconSize="50rpx" placeholderColor="#C9CACA"></u-search>
				</view>
			</view>
			
		    <view class="tips">
				<view><image src="/static/images/status1.png"></image>有效</view>
				<view><image src="/static/images/status2.png"></image>未交易</view>
				<view><image src="/static/images/status3.png"></image>暂失效</view>
				<view><image src="/static/images/status4.png"></image>封禁</view>
			</view>
			
			<view class="team_zuzhi">
				<view class="tit">我的上级 : 18096722366 毛泽东</view>
				<dropDown :node="textArr" @nodechange="nodechange" @filechange="filechange"></dropDown>
			</view>
			
		</view>
		
	</view>	
</template>

<script>
import dropDown from '@/uni_modules/zwx-dropDown/components/zwx-dropDown/zwx-dropDown'
export default{
	components: {
		/***** mescroll S *****/
		//注册组件
		dropDown
		/***** mescroll E *****/
	},
	data() {
		return {
			bgColor:'#524f4e',
			inputAlign:'center',
			height:64,
			showAction:false,
			keyword:'',
			
			textArr:[{
				name: "18096723666王海（直推）",
				src:'status1',
				id: "1",
				open: false,
				children: [{
					name: "18096723666张光祥",
					src:'status1',
					id: "1-1",
					open: false,
					file: [{
						name: "18096723666宋东",
						src:'status1',
						fileid:"41245654",
					}],
					children: [{
						name: "18096723666宋小刚",
						src:'status1',
						id: "1-1-1",
						open: false,
						children: [],
						file: [{
							src:'status1',
							name: "18096723666宋小刚",
						}],
					}]
				},
				{
					name: "18096723666宋小刚",
					src:'status1',
					id: "1-2",
					open: false,
					children: [{
						name: "18096723666宋小刚",
						src:'status1',
						id: "1-2-1",
						open: false,
						children: [],
						file: [{
							name: "18096723666宋小刚",
							src:'status1',
							fileid:"13454574"
						}]
					}]
				}]
			},
			{
				name: "18096723666宋小刚",
				src:'status2',
				id: "2",
				open: false,
				children: [{
					name: "18096723666宋小刚",
					src:'status1',
					id: "2-1",
					open: false,
					children: []
				}]
			},
			{
				name: "18096723666宋小刚",
				src:'status3',
				id: "3",
				open: false,
				children: []
			},
			{
				name: "18096723666宋小刚",
				src:'status1',
				id: "4",
				open: false,
				children: []
			}]
		}
	},
	onLoad(){
		this.height = uni.getSystemInfoSync().windowHeight - uni.upx2px(105) + 'px';
		console.log(this.height);
	},	
	methods:{
			
		checkIndex(index) {
			console.log(index)
			this.navIndex = index;
		},
		nodechange(){
		},
		filechange(){
		},
	}
	
}
</script>

<style>
	@import url("../../common/style.scss");
	@import url("team.scss");
</style>